<!DOCTYPE html>
<html   xmlns:th="http://www.thymeleaf.org">

<head>
    
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="all,follow">

    <title></title>
    <link rel="shortcut icon" href="img/favicon.ico">
    

  <div th:replace="common/common :: commonheader"></div>

    <!-- Core stylesheets -->
</head>

<body> 

    <div th:replace="common/common :: leftmenu"></div>

    <div class="page-content d-flex align-items-stretch">

        <div th:replace="common/common :: #contenthead"></div>

        <div class="content-inner chart-cont">

            <!--***** CONTENT *****-->     
            <div class="row">
                <table class="table table-hover">
                  <thead>
                    <tr class="bg-info text-white">
                      <th>#</th>
                      <th>用户名</th>
                      <th>密码</th>
                    </tr>
                  </thead>
                  <tbody th:each="user,status:${users}">
                    <tr>
                      <th th:text="${status.count}"></th>
                      <td th:text="${user.username}"></td>
                      <td th:text="${user.passwd}"></td>
                    </tr>
                  </tbody>
                </table>
            </div> 

        </div>
    </div> 

    <div th:replace="common/common :: scriptmenu"></div>

    <!--Core Javascript -->
    <script>
        new Chart(document.getElementById("myChart-nav").getContext('2d'), {
          type: 'doughnut',
          data: {
            labels: ["M", "T", "W", "T", "F", "S", "S"],
            datasets: [{
              backgroundColor: [
                "#2ecc71",
                "#3498db",
                "#95a5a6",
                "#9b59b6",
                "#f1c40f",
                "#e74c3c",
                "#34495e"
              ],
              data: [12, 19, 3, 17, 28, 24, 7]
            }]
          },
          options: {
              legend: { display: false },
              title: {
                display: true,
                text: ''
               } 
            }
        });
    </script> 
</body>

</html>